using UnityEngine;

public class PlayOfflineWindow : MonoBehaviour
{
	public static PlayOfflineWindow instance;

	public GameObject window;

	private void Awake()
	{
		instance = this;
	}

	private void OnDestroy()
	{
		instance = null;
	}

	public void PlayOffline()
	{
		CloseWindow();
		controllerMenu.thisScript.playOfflineMode();
		if (InGameTutorialStepOnDisable.instance != null && InGameTutorialStepOnDisable.instance.pressButton != null)
		{
			InGameTutorialStepOnDisable.instance.pressButton.Use();
			InGameTutorialStepOnDisable.instance.pressButton = null;
		}
	}

	public void CloseWindow()
	{
		window.SetActive(false);
	}

	public void ShowWindow()
	{
		window.SetActive(true);
	}
}
